home *** CD-ROM | disk | FTP | other *** search
/ ftp.mactech.com 2010 / ftp.mactech.com.tar / ftp.mactech.com / machack / Hacks97 / WarriorsProgress.sit / Warrior’s Progress / source code / Source / Libraries / Idle / Repeater.h < prev    next >
Text File  |  1997-06-28  |  464b  |  30 lines

  1. // Repeater.h
  2.  
  3. #ifndef Repeater_h
  4. #define Repeater_h
  5.  
  6. #ifndef Enableable_h
  7. #include "Enableable.h"
  8. #endif
  9. #ifndef PostponableMethod_h
  10. #include "PostponableMethod.h"
  11. #endif
  12.  
  13. class Repeater: public Enableable
  14.   {
  15.     private:
  16.         const Method& toRepeat;
  17.         PostponableMethod< Repeater > repeat;
  18.         bool inProgress;
  19.         
  20.         void Repeat();
  21.  
  22.         virtual void BeEnabled();
  23.         virtual void BeDisabled();
  24.         
  25.     public:
  26.         Repeater( const Method&, bool startEnabled = true );
  27.   };
  28.  
  29. #endif
  30.